<?php

namespace app\service\index;

use app\db\index\D_articleType;

class S_articleType
{
    public $d_article;

    public function __construct()
    {
        $this->d_article = new D_articleType();
    }

    /**
     * 获取所有数据
     * @param string $paramObj
     * @return array
     */
    public function getAll($paramObj=""){
        return $this->d_article->getAll($paramObj);
    }

    /**
     * 获取文章分类列表
     * @param string $paramObj
     * @return array
     */
    public function getList($paramObj=""){
        return $this->d_article->getList($paramObj);
    }

    public function __call($name,$arguments)
    {
        return recordLogMsgLevelTwo(app("errorLevel")::E_WARNING,app("errorCode")::UNDEFINED_METHOD,lang("sys.noMethodDefined"),$name,$arguments);
    }
}